//
//  DHStatusNormalCell.swift
//  Weibo
//
//  Created by Holfioo on 15/9/9.
//  Copyright © 2015年 Holfioo. All rights reserved.
//

import UIKit

class DHStatusNormalCell: DHStatusCell {

    override func setupUI() {
        super.setupUI()
        // 图片约束
        let con = pictureView.ff_AlignVertical(type: ff_AlignType.BottomLeft, referView: labText, size: CGSize(width: DHPictuerMaxWH, height: DHPictuerMaxWH), offset: CGPoint(x: 0, y: DHStatusCellMargin))
        
        // 记录约束
        pictureViewWidthCons = pictureView.ff_Constraint(con, attribute: NSLayoutAttribute.Width)
        pictureViewHeightCons = pictureView.ff_Constraint(con, attribute: NSLayoutAttribute.Height)
        pictureViewTopCons = pictureView.ff_Constraint(con, attribute: NSLayoutAttribute.Top) // 顶部约束
    }
}
